package com.hzit.pay.center.mapper;

import com.hzit.pay.center.model.MchPayChannelInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MchPayChannelInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(MchPayChannelInfo record);

    int insertSelective(MchPayChannelInfo record);

    MchPayChannelInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MchPayChannelInfo record);

    int updateByPrimaryKey(MchPayChannelInfo record);

    /**
     * 根据商户号查询支付方式列表
     * @param mchId
     * @return
     */
    List<MchPayChannelInfo> queryByMchId(@Param("mchId")String mchId);

    /**
     *
     * @param mchId
     * @param payChannel
     * @param payMethod
     * @return
     */
    MchPayChannelInfo queryByMchIdAndChannel(@Param("mchId")String mchId,
                                             @Param("payChannel")String payChannel,
                                             @Param("payMethod")String payMethod);
}